﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;

namespace TfsBugger.Controls
{
    public class EtchedLinePanel : Panel
    {
        #region Ctor
        public EtchedLinePanel()
        {
            ShowEtchedLine = true;
        }
        #endregion


        #region Properties
        [DefaultValue(true)]
        public bool ShowEtchedLine { get; set; }
        #endregion 


        #region Overridden Methods
        protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);
            ControlPaint.DrawBorder3D(
                e.Graphics,
                ClientRectangle.X, 
                ClientRectangle.Bottom - 3, 
                ClientRectangle.Width, 2, 
                Border3DStyle.Etched);
        }
        #endregion
    }
}
